@import "@/styles/base/index.scss";

.trending-products {




  // .svg-icon-wrapper {
  //   margin-top: -3px;
  // }

  .trending-hd {
    margin: 96px auto 45px;


    .btns {
      width: 115px;
    }

  }

  .slick-list {
    padding: 20px 0 0px;
    visibility: hidden;
  }

  &.mounted .slick-list {
    visibility: visible;
  }

  .slick-dots {
    bottom: -45px;
  }


  .slick-arrow {
    background: #d4acfd;
    position: absolute;
    right: 0;
    top: -78px;
    width: 45px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border-radius: 15px;
    color: white;
    cursor: pointer;

    &:hover {
      background: $themeColor;
    }
  }

  .slick-prev {
    right: 55px;
    transform: rotateY(180deg);
  }

  .slider-item {
    .slider-item-inner {
      margin-right: 20px;
      padding: 5px 30px;
      // width: 305px;
      width: 16vw;
      overflow: hidden;
      border: 4px solid $themeColor;
      border-radius: 200px;
      background-color: white;
      text-align: center;
      width: 93%;

      a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
      }
    }

    .title {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      font-weight: 500;
      font-size: 14px;
      letter-spacing: 1px;
      line-height: 1.2;
    }

    .shop-btn {
      width: 95px;
      height: 32px;
      background: #942FFB;
      color: #F9F6F3;
      text-align: center;
      border-radius: 22px;
      font-size: 12px;
    }

    img {
      width: 120px;
      height: 120px;
    }
  }

}

@media (max-width: 768px) {
  .trending-products {
    .slick-list {
      margin: auto;
      max-width: 330px;
    }
  }

}


@media (max-width: 639px) {
  .trending-products {
    .slick-arrow {
      display: none !important;
    }

    .trending-hd {
      flex-direction: column;

      .line,
      .btns {
        display: none;
      }
    }
  }

}